package com.zhiyou.service.impl;

import com.zhiyou.bean.Dianzan;
import com.zhiyou.dao.DianzanMapper;
import com.zhiyou.service.DianzanService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DianzanServiceImpl implements DianzanService {

    @Resource
    DianzanMapper dianzanMapper;

    @Override
    public List<Dianzan> getDZByUserId(Integer userId) {
        Dianzan d = new Dianzan();
        d.setUserId(userId);
        return dianzanMapper.select(d);
    }
}
